package com.cogent.expression.facade;

import java.util.HashMap;

import com.cogent.common.util.StringUtil;
import com.cogent.expression.IExpression;
import com.cogent.expression.impl.SystemExpressionImpl;

public class ExpressionFacade {
	
	public static String getExpressionValue(HashMap formMap, String expression) {
		if(StringUtil.isEmpty(expression))
			return "";
		IExpression exp = new SystemExpressionImpl();
		return exp.getExpressionValue(formMap, expression);
	}
	
	public static void getFormValue(HashMap formMap, String key, String expression) {
		if(StringUtil.isEmpty(expression))
			return ;
		IExpression exp = new SystemExpressionImpl();
		exp.getFormValue(formMap, key, expression);
	}
}
